﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.Product
{
    public interface IItemTypeServices
    {
        //根据条件查询数据
        public Task<IEnumerable<ItemType>> GetAsync(string ItemOrProduct,string ItemTypeName, string EnableFlag);

        //查询所有数据
        public Task<IEnumerable<ItemType>> GetAllAsync(string ItemOrProduct, string ItemTypeName, string EnableFlag);

        //修改
        public Task<bool> UpdateAsync(ItemType model);

        //新增
        public Task<bool> AddAsync(ItemType model);

        public Task<bool> DeleteAsync(int[] Ids);
        public Task<bool> DeleteAsync(int Id);
    }
}
